<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
<!--    以jar包方式引入-->
<!--    <script src="/webjars/jquery/3.5.1/jquery.js"></script>-->
<!--    放文件夹中引入-->
    <script src="/js/jquery.js"></script>
</head>
<body>
    <h1>hello</h1>
    <h1>hello2</h1>
    <h1>hello3</h1>

    <span th:id="${userName}" th:text="${userName}"></span><br>

    <span th:text="${str}"></span><br>
    <span th:utext="${str}"></span><br>

    <table border="1">
        <tr>
            <td>名字</td>
            <td>操作</td>
        </tr>
        <th:block th:each=" p : ${phone}">
            <tr>
                <td th:text="${p}"></td>
                <td><a th:href="@{/findByName(userName=${p})}">查看</a></td>
            </tr>
        </th:block>
    </table>

    <table border="1">
        <tr th:each=" p : ${phone}">
            <td th:text="${p}"></td>
            <td>编辑</td>
        </tr>
    </table><br>

    <span th:text="${sdf}"></span><br>
    <span th:text="${#dates.format(d,'yyyy-MM-dd')}"></span><br>

    <a href="/findByName">查看</a><br>

    <a th:href="@{/findById/}+${aid}">查看</a><br>

    <span th:text="${session.order}"></span><br>

    <div th:replace="commom/common :: commonjs"></div><br>
    <div th:insert="commom/common1.html"></div><br>

    <select>
        <option th:each=" id : ${ids}" th:value="${id}" th:selected="${id eq aid}" th:text="${id}"></option>
    </select><br>

    [[${aid}]]
    <script th:inline="javascript">
        //var goods = [[${goods.goodId}]]
        //alert(goods)
        //var goods = [[${goods}]]
        //alert(goods.goodId)
        $(function(){
            alert("hello")
        })
    </script>
</body>
</html>
